package com.kika.obwiki.rep;

import lombok.Data;
import lombok.ToString;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * 用户登录请求参数
 * 
 * @author cr
 * @since 2025-06-22
 */
@Data
@ToString
public class UserLoginReq {
  /**
   * 登录名
   */
  @NotEmpty(message = "【用户名】不能为空")
  private String loginName;

  /**
   * 密码
   */
  @NotEmpty(message = "【密码】不能为空")
  @Pattern(regexp = "^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,32}$", message = "【密码】规则不正确")
  private String password;
}